package com.atguigu.gamll_sugar.service.impl;

import com.atguigu.gamll_sugar.entity.C3Stats;
import com.atguigu.gamll_sugar.entity.SpuStats;
import com.atguigu.gamll_sugar.entity.TmStats;
import com.atguigu.gamll_sugar.mapper.ProductStatsMapper;
import com.atguigu.gamll_sugar.service.ProductStatsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;
import java.util.List;

/**
 * @author chenlongStart
 * @create 2021-07-07 13:16
 * @desc
 */
@Service
public class ProductStatsServiceImpl implements ProductStatsService {

    @Autowired
    ProductStatsMapper product;

    @Override
    public BigDecimal getGMV(int date) {
        return product.getGMV(date);
    }

    @Override
    public List<TmStats> getTmGMV(int date, int limit) {
        return product.getTmGMV(date,limit);
    }

    @Override
    public List<C3Stats> getC3GMV(int date, int limit) {
        return product.getC3GMV(date,limit);
    }

    @Override
    public List<SpuStats> getSpuGMV(int date, int limit) {
        return product.getSpuGMV(date,limit);
    }
}
